﻿using Api.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Web.Http;

namespace MyWebApi.Controllers
{
    public partial class ManagerController : ApiController
    {
        private static Api.BLL.manager bll = new Api.BLL.manager();

        [HttpPost,HttpGet]
        public static string GetManagerModel(string username, string pwd)
        {
            if(bll.GetModel(username, pwd, true) != null)
            {
                return Utils.Base64Encode(username);
            }
            return "";
        }
    }
}
